<form id="form-add" class="form-horizontal form-confirm" action="{% url 'systems:user_pwd_modify' %}" method="post">

    <input type="hidden" id="id" name="id" value="{{ h_id|default_if_none:'' }}"/>

    <div class="form-group" {% if h_id is not None %} style="display: none" {% endif %} >
        <label class="control-label col-md-3">旧密码</label>
        <div class="col-md-6">
            <input id="pwd" type="password" class="form-control" name="pwd"/>
        </div>
        <h4 class="col-md-3" style="color: red;">*</h4>
    </div>
    <div class="form-group">
        <label class="control-label col-md-3">新密码</label>
        <div class="col-md-6">
            <input id="pwd1" type="password" class="form-control" name="pwd1"/>
        </div>
        <h4 class="col-md-3" style="color: red;">*</h4>
    </div>
    <div class="form-group">
        <label class="control-label col-md-3">确认新密码</label>
        <div class="col-md-6">
            <input id="pwd2" type="password" class="form-control" name="pwd2"/>
        </div>
        <h4 class="col-md-3" style="color: red;">*</h4>
    </div>

    {% csrf_token %}
</form>